package org.metasketch.diagram.javafx.graphics;

import java.util.ArrayList;
import java.util.List;

public class ConfigurableLink extends DefaultLink {

	List<ILinkGraphicConfigurer> linkGraphicConfigurers = new ArrayList<ILinkGraphicConfigurer>();

	protected void refreshModelGraphic() {
		super.refreshModelGraphic();

		for (ILinkGraphicConfigurer configurer : linkGraphicConfigurers) {
			configurer.setup(this);
		}

	}

	public void addLinkGraphicConfigurer(ILinkGraphicConfigurer configurer) {
		linkGraphicConfigurers.add(configurer);
	}

}
